﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NameCard.aspx.cs" Inherits="Card.Web.Member.NameCard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="Card.Utility" %>
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>会员中心_<%=SiteName %></title>
    <link href="../css/mp.css" type="text/css" rel="Stylesheet" />
    <link href="../css/layout.css" type="text/css" rel="Stylesheet" />
    <link href="../css/member.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="Header1" runat="server"></uc1:Header>
    <div class="content">
        <uc1:Menu ID="Menu1" runat="server"></uc1:Menu>
        <div class="right">
            <div class="top_info clear-fix">
                <h2>
                    我的名片</h2>
            </div>
            <div class="card_list">
                <ul class="clear-fix">
                    <asp:Repeater ID="rptList" runat="server">
                        <ItemTemplate>
                            <li>
                                <div>
                                    <a target="_blank" href="/design.aspx?id=<%# Eval("ID") %>&u=<%# Eval("USER_ID") %>">
                                        <img src="<%# ImageUtilty.GetUserCardListImagePath(int.Parse(Eval("ID").ToString()),int.Parse(Eval("USER_ID").ToString()),Eval("FRONT_IMAGE").ToString()) %>"
                                            alt='<%# Eval("TEMPLATE_NAME") %>'></a>
                                </div>
                                <p>
                                    <a  href="/onlineprint.aspx?id=<%# Eval("ID") %>">
                                        打印</a>|<a href="/design.aspx?id=<%# Eval("ID") %>&u=<%# Eval("USER_ID") %>">
                                        编辑</a>|<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="DELETE" CommandArgument='<%# Eval("ID") %>'>删除</asp:LinkButton></p>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <div style=" clear:both;"></div>
            <div style="text-align: center;">
                <baf:UrlPager ID="pager" CssClass="pagination" runat="server" PageSize="12" />
            </div>
        </div>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    </form>
</body>
</html>
